import request from '@/utils/request'

// 查询接口服务列表
export function listInterfaceService(query) {
  return request({
    url: '/system/interfaceService/list',
    method: 'get',
    params: query
  })
}

// 查询接口服务详细
export function getInterfaceService(serviceId) {
  return request({
    url: '/system/interfaceService/' + serviceId,
    method: 'get'
  })
}

// 新增接口服务
export function addInterfaceService(data) {
  return request({
    url: '/system/interfaceService',
    method: 'post',
    data: data
  })
}

// 修改接口服务
export function updateInterfaceService(data) {
  return request({
    url: '/system/interfaceService',
    method: 'put',
    data: data
  })
}

// 删除接口服务
export function delInterfaceService(serviceId) {
  return request({
    url: '/system/interfaceService/' + serviceId,
    method: 'delete'
  })
}
